home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / test / lib / print.c < prev    next >
C/C++ Source or Header  |  1992-11-23  |  356b  |  17 lines

  1.  
  2. #include <stdio.h>
  3.  
  4. main()
  5. {
  6.     char buf[128];
  7.     printf("%c\n", 'a');
  8.     printf("hi mom 43 == %d, + 1 == %ld!\n", 43, 44);
  9.     sprintf(buf, "hi mom 43 == %3ld, + 1 == %3ld!\n", 43, 44);
  10.     puts(buf);
  11.     puts("test");
  12.     printf("Foo %s on you %s\n", "abc", "def");
  13.     printf("%%04d (26): %04d\n", 26);
  14.     printf("left just '%-15s'\n", "Fooo");
  15. }
  16.  
  17.